﻿using System.ComponentModel.DataAnnotations;

namespace Dyao.Book.Contract
{
    /// <summary>
    /// 任务中心创建参数
    /// </summary>
    public class TaskCenterCreateInputDto
    {
        /// <summary>
        /// TaskSettingId
        /// </summary>
        [Required(ErrorMessage = "TaskCode不能为空")]
        public virtual string TaskCode { get; set; }

        /// <summary>
        /// 菜单
        /// </summary>
        [Required(ErrorMessage = "菜单路径不能为空")]
        public virtual string MenuPath { get; set; }

        /// <summary>
        /// 业务参数字典
        /// </summary>
        //[JsonExtensionData]
        public Dictionary<string, object> ExtraParameters { get; set; }

        /// <summary>
        /// 参数字符串
        /// </summary>
        public string ParametersString { get; set; }
    }
}
